# 环境 ： dev 开发环境
TCLOUD_ENV = 'dev'
# 服务 ： dev 开发环境
# SERVER_ENV = 'dev'
# 服务 ： product 生产环境
SERVER_ENV = 'product'
# from config import yaml_config

try:
    if SERVER_ENV == 'product':
        from product_config import *
        # yaml_config.get_yaml_data(SERVER_ENV)
    elif SERVER_ENV == 'dev':
        from dev_config import *
    # middle = yaml_config.get_yaml_data(SERVER_ENV)
except ImportError:
    pass

# 密钥相关
SECRET = 'bestjlb'
ALGORITHM = 'HS256'
TSECRET = '####RPC####'
SALT = 'asjdia8938jf9wf8923'

REDIS_TASK_NAME = 'aladdin:task:incr'
REDIS_TASK_QUEUE = 'aladdin:task:queue'
REDIS_TASK_NUMBER = 10000

# OSS 配置
OSSAccessKeyId = 'LTAI4FcWRsmGhFT8zVCaeZTa'
OSSAccessKeySecret = 'vZrEnnkhOzvnQQl4XsNNWWdo65IwZD'
OSS_ENDPOINT = 'http://oss-cn-hangzhou.aliyuncs.com'
OSS_BUCTET_NAME = 'jlb-tc'
OSSHost = 'http://jlb-tc.oss-cn-hangzhou.aliyuncs.com'
CMSHost = 'http://jlb-tc.oss-cn-hangzhou.aliyuncs.com'

# 测试环境数据上报
CID = ""
SIGN_KEY = ""
RAND = ""
LOG_REPORT_URL = ""

# jenkins 配置
CI_AUTO_MAN_JENKINS_URL = 'http://jenkins_url.com'
CI_AUTO_MAN_JENKINS_AUTH = {
    "username": "username",
    "password": "password"
}
CI_AUTO_MAN_JENKINS_MONKEY_JOB = 'monkey'
CI_REPORT_FILE_ADRESS = "http://oss_ci_report_url"
CI_JOB_ADDRESS = "http://jenkins_url.com/job"

# jira 配置
JIRA_OPEN = 0
JIRA_URL = 'http://jira_url'
JIRA_AUTH = ('tcloud', 'tcloud')

# 企业微信应用配置凭证
CORP_ID = 'secret'
# 企业微信发送url，需要企业进行配置
QYWXHost = 'https://qywxurl/'
WX_MESSAGE_URL = ''
